package com.airline.dto;

import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class BookingResponse {
    private Long id;
    private UserInfo user;
    private FlightInfo flight;
    private String passengerName;
    private String seatClass;
    private BigDecimal price;
    private LocalDateTime bookingTime;
    private String status;

    @Data
    public static class UserInfo {
        private Long id;
        private String username;
        private String email;
    }

    @Data
    public static class FlightInfo {
        private Long id;
        private String flightNumber;
        private String departureCity;
        private String arrivalCity;
        private LocalDateTime departureTime;
        private LocalDateTime arrivalTime;
    }
}